<?php
/**
 * @CopyRight  (C)2006-2011 OE Development team Inc.
 * @WebSite    www.phpcoo.com，www.oecms.cn
 * @Author     XiangFeng <phpzac@foxmail.com>
 * @Brief      OEcms v3.x
 * @Update     2011.09.07
**/
session_start();

if(!defined('ALLOWGUEST')) {
	exit('Access Denied');
}
require_once CHENCY_ROOT.'./source/module/mod.url.php';
require_once CHENCY_ROOT.'./source/module/mod.rep.php';
require_once CHENCY_ROOT.'./source/module/mod.page.php';
require_once CHENCY_ROOT.'./source/module/mod.ads.php';
require_once CHENCY_ROOT.'./source/module/mod.delimit.php';
require_once CHENCY_ROOT.'./source/module/mod.info.php';
require_once CHENCY_ROOT.'./source/module/mod.case.php';
require_once CHENCY_ROOT.'./source/module/mod.down.php';
require_once CHENCY_ROOT.'./source/module/mod.product.php';
require_once CHENCY_ROOT.'./source/module/mod.solution.php';
require_once CHENCY_ROOT.'./source/module/mod.job.php';
require_once CHENCY_ROOT.'./source/module/mod.part.php';
require_once CHENCY_ROOT.'./source/module/mod.guestbook.php';
require_once CHENCY_ROOT.'./source/module/yset/mod.luck365.php';
require_once CHENCY_ROOT.'./source/module/user/mod.user.php';
/* 初始化 */
Mod_Url::display_menurl();
Mod_Page::display();
Mod_Ads::display();
Mod_Delimit::display();

$tpl->assign("openid",0);
/* 系统默认函数标签 */
$tpl->assign("volist_onlinechat",Mod_Part::volist_onlinechat());
$tpl->assign("volist_fontlink",Mod_Part::volist_fontlink());
$tpl->assign("volist_logolink",Mod_Part::volist_logolink());
$tpl->assign("volist_page",Mod_Page::volist());
$tpl->assign("volist_newinfo",Mod_Info::volist());
$tpl->assign("volist_info_yixue",Mod_Info::volist("AND v.cateid=6","",6));
$tpl->assign("volist_info_bazi",Mod_Info::volist("AND v.cateid=2","",6));
$tpl->assign("volist_info_qiming",Mod_Info::volistall("AND (v.cateid=3","",6,3));
$tpl->assign("volist_info_marray",Mod_Info::volist("AND v.cateid=5","",6));
$tpl->assign("volist_info_jiri",Mod_Info::volistall("AND (v.cateid=4","",6,4));
$tpl->assign("volist_info_fengshui",Mod_Info::volist("AND v.cateid=1","",9));
$tpl->assign("volist_info_gonggao",Mod_Info::volist("AND v.cateid=7","",7));
$tpl->assign("volist_info_huodong",Mod_Info::volist("AND v.cateid=31","","3"));
$tpl->assign("volist_infocategory",Mod_Info::category());
$tpl->assign("volist_infocategory_jiri",Mod_Info::category("AND c.parentid = 4"));
$tpl->assign("volist_newcase",Mod_Case::volist());
$tpl->assign("volist_casecategory",Mod_Case::category());
$tpl->assign("volist_newdownload",Mod_Down::volist());
$tpl->assign("volist_downloadcategory",Mod_Down::category());
$tpl->assign("volist_newjob",Mod_Job::volist());
$tpl->assign("volist_jobcategory",Mod_Job::category());
$tpl->assign("volist_newsolution",Mod_Solution::volist());
$tpl->assign("volist_solution_index",Mod_Solution::volist("","",2,10));
$tpl->assign("volist_solutioncategory",Mod_Solution::category());
$tpl->assign("volist_solutiontreecategory",Mod_Solution::treecategory());
$tpl->assign("volist_solution_fengshui",Mod_Solution::volist("AND v.cateid=1","",3));
$tpl->assign("volist_solution_jieshuo",Mod_Solution::volist("AND v.cateid=2","",3));
$tpl->assign("volist_solution_bazi",Mod_Solution::volist("AND v.cateid=7","",3));
$tpl->assign("volist_solution_daxue",Mod_Solution::volist("AND v.cateid=8","",3));
$tpl->assign("volist_newproduct",Mod_Product::volist("","",8,8));
$tpl->assign("volist_productcategory",Mod_Product::category());
$tpl->assign("volist_producttreecategory",Mod_Product::treecategory());
$tpl->assign("volist_guestbook",Mod_GuestBook::volist("","","12"));
$tpl->assign("volist_guestbook_inner",Mod_GuestBook::volist("","","10"));
$tpl->assign("vobject_luch365",Mod_Luck365::vobject());
$tpl->assign("volist_info_weibo",Mod_Info::volist("AND v.cateid=30","",3));
$tpl->assign("loginuser",Mod_User::timeout());
$tpl->assign("loginuser",Mod_User::userinfo($_SESSION['userid']));
$tpl->assign("username",$_SESSION['username']);
$tpl->assign("volist_guestbook_wed",Mod_Page::volistwed());
$tpl->assign("onlinechat",Mod_Part::volist_onlinechat());


?>